package com.meiyou.utils.jedis;

import java.util.List;

import com.meiyou.pojo.Coordinate;
import com.meiyou.pojo.Coordinates;

import redis.clients.jedis.GeoRadiusResponse;

public interface JedisClient {

	String set(String key, String value);
	String get(String key);
	Boolean exists(String key);
	Long expire(String key, int seconds);
	Long ttl(String key);
	Long incr(String key);
	Long hset(String key, String field, String value);
	String hget(String key, String field);
	Long hdel(String key, String... field);
	Long sadd(String key,String... field);
	Long scard(String key);
	Boolean sismember(String key, String member);
	Long srem(String key,String member);
	void del(String key);
	void setValueTime(String key, String value, Integer seconds);
	Long addReo(Coordinate coordinate,String table);
	List<GeoRadiusResponse> geoQuery(Coordinate coordinate,int fanwei,String table);
}
